<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>应用版本使用统计</title>
  <!--   <script src="../common/common-js.js"></script>
    <link href="../css/common.css" type="text/css" rel="stylesheet"> -->
</head>

<body>
    <el-container id="statistic">
        <el-table :data="usedData">
            <el-table-column prop="appName" label="应用名">
            </el-table-column>
            <el-table-column prop="versionCode" label="版本">
            </el-table-column>
            <el-table-column prop="count" label="使用数量">
            </el-table-column>
        </el-table>
    </el-container>
</body>
<script type="text/javascript">
     var v= new Vue({
       el:'#statistic',
        data() {
            return {
              
        usedData: [],
        testData: null,
            }
        },
        methods: {
      load(tree, treeNode, resolve) {
        setTimeout(() => {
          resolve([])
        }, 1000)
      },
      handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
    },
    mounted(){
        axios
        .get("http://localhost:9095/statistics/listRegister")
        .then(response => (this.usedData=response.data.data))
        .catch(error => console.log(error))
    }
  
    })

</script>
</html>